package com.boot.common.property;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 文件上传配置属性类
 * 映射 application.yml 中 upload 前缀的安全相关配置
 */
@Data
@Component
@Validated
@ConfigurationProperties(prefix = "upload")
public class UploadProperties {

    /**
     * 头像保存路径
     */
    @NotEmpty
    private String avatarPath;

    /**
     * 文件保存路径
     */
    @NotEmpty
    private String filePath;

}
